package com.gxa.jjty.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author asus
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
@Table(name = "message_type")
public class MsgType implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @ApiModelProperty(value = "ID",hidden = true)
  private Integer id;

  @ApiModelProperty(value = "创建时间",hidden = true)
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date creationTime;

  @ApiModelProperty(value = "类型名称")
  private String typeName;

  @ApiModelProperty(value = "消息状态")
  private Integer messageStatus;

  @ApiModelProperty(value = "排序")
  private Integer sort;



}
